package com.hyzh.latte.vehicle.dmo;

import com.coffee.core.CoffeeEnum;

/**
 * @author songkui
 * @since 2024/5/8 18:08
 */
public enum StreamingSecretEnum implements CoffeeEnum<String> {
    gaoxin("Z4bpeFjIG7bZlTpk2GnJANTCby0Dh1Kl", "gaoxin"),
    jiangan("5puBnKLs6KIXGQFM8IYirvHILEdWWY5g", "jiangan");

    private final String code;
    private final String park;

    StreamingSecretEnum(String code, String park){
        this.code = code;
        this.park = park;
    }


    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String label() {
        return this.park;
    }

    public static StreamingSecretEnum ofCode(String code) {
        for (StreamingSecretEnum genderEnum : values()) {
            if (genderEnum.code.equals(code)) {
                return genderEnum;
            }
        }
        return null;
    }


}
